package com.tian.web.admin.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tian.core.entity.Ztreegroup;
import com.tian.core.service.impl.BaseServiceImpl;
import com.tian.web.admin.service.ZtreeGroupService;
@Service
public class ZtreeGroupServiceImpl extends BaseServiceImpl<Ztreegroup> implements ZtreeGroupService{
	public ZtreeGroupServiceImpl(){
		super.setEntity(Ztreegroup.class);
	}

	public void deleteByProperty(Integer groupid) {
		String hql = "delete from Ztreegroup model where model.group.id=?";
		Map params = new HashMap();
		params.put(0, groupid);
		this.executeHQL(hql, params);
	}
}
